import request from '@/utils/request'

// 查询水位列表
export function listWaterLevel(query) {
  return request({
    url: '/manage/waterLevel/list',
    method: 'get',
    params: query
  })
}

// 查询水位详细
export function getWaterLevel(waterLevelId) {
  return request({
    url: '/manage/waterLevel/' + waterLevelId,
    method: 'get'
  })
}

// 新增水位
export function addWaterLevel(data) {
  return request({
    url: '/manage/waterLevel',
    method: 'post',
    data: data
  })
}

// 修改水位
export function updateWaterLevel(data) {
  return request({
    url: '/manage/waterLevel',
    method: 'put',
    data: data
  })
}

// 删除水位
export function delWaterLevel(waterLevelId) {
  return request({
    url: '/manage/waterLevel/' + waterLevelId,
    method: 'delete'
  })
}

export function genWaterLevel() {
  return request({
    url: '/waterSituation/genWsData',
    method: 'get'
  })
}
